package com.xx.dao;

import com.xx.pojo.User;
import org.mybatis.spring.SqlSessionTemplate;

import java.util.List;

public class UserDaoImpl implements UserDao {

    private SqlSessionTemplate sqlSessionTemplate;

    @Override
    public List<User> getAllUsers() {
        return sqlSessionTemplate.getMapper(UserDao.class).getAllUsers();
    }

    public void setSqlSessionTemplate(SqlSessionTemplate sqlSessionTemplate) {
        this.sqlSessionTemplate = sqlSessionTemplate;
    }
}
